home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / 3BillyGoats.dxr / 00042_unallowed Move.ls < prev    next >
Encoding:
Text File  |  2002-01-25  |  411 b   |  23 lines

  1. global gPaused, gWait4Rest, gGoatScore, gOgreScore, gRestart
  2.  
  3. on beginSprite
  4.   put the timer
  5. end
  6.  
  7. on mouseUp
  8.   if gRestart = 1 then
  9.     startTimer()
  10.     gRestart = 0
  11.   end if
  12.   if the timer > 40 then
  13.     if (gGoatScore < 100) and (gOgreScore < 100) then
  14.       if gWait4Rest = 1 then
  15.         resetGame()
  16.         gWait4Rest = 0
  17.       end if
  18.       sprite(120).visible = 0
  19.       gPaused = 0
  20.     end if
  21.   end if
  22. end
  23.